﻿@model SDE_FIC.Models.UnidadeCurricular

@{
    ViewBag.Title = "Criar";
    Layout = "~/Views/Shared/_Layout_Sistema.cshtml";
}

<h2>Criar Nova</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Unidade Curricular</legend>
        @*
        <div class="editor-label">
            @Html.LabelFor(model => model.idunidadecurricular)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.idunidadecurricular)
            @Html.ValidationMessageFor(model => model.idunidadecurricular)
        </div>
        *@
        <div class="editor-label">
            <b>Unidade Curricular</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Descricao)
            @Html.ValidationMessageFor(model => model.Descricao)
        </div>

        <div class="editor-label">
            <b>Carga Horária (h)</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CargaHoraria)
            @Html.ValidationMessageFor(model => model.CargaHoraria)
        </div>

        <div class="editor-label">
            <b>Curso</b>
        </div>
        <div class="editor-field">
            @*Html.DropDownListFor(x => x.Sexo, ViewBag.SexoList as SelectList, new { @class = "form-control" })*@

            @*Html.DropDownList("curso_idcurso", String.Empty)*@
            @Html.DropDownListFor(model => Model.Curso.IdCurso, ViewBag.curso_idcurso as SelectList, "")
            @Html.ValidationMessageFor(model => model.Curso.IdCurso)
        </div>

        <p>
            <input type="submit" class="btn btn-sucsess " value="Salvar" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Voltar para Listagem", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
